LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := luasocket_static

LOCAL_MODULE_FILENAME := libluasocket

LOCAL_SRC_FILES := \
	../../../external/luasocket-2.0.2/src/auxiliar.c \
	../../../external/luasocket-2.0.2/src/buffer.c \
	../../../external/luasocket-2.0.2/src/except.c \
	../../../external/luasocket-2.0.2/src/inet.c \
	../../../external/luasocket-2.0.2/src/io.c \
	../../../external/luasocket-2.0.2/src/luasocket.c \
	../../../external/luasocket-2.0.2/src/mime.c \
	../../../external/luasocket-2.0.2/src/options.c \
	../../../external/luasocket-2.0.2/src/select.c \
	../../../external/luasocket-2.0.2/src/tcp.c \
	../../../external/luasocket-2.0.2/src/timeout.c \
	../../../external/luasocket-2.0.2/src/udp.c \
	../../../external/luasocket-2.0.2/src/unix.c \
	../../../external/luasocket-2.0.2/src/usocket.c

LOCAL_EXPORT_C_INCLUDES := \
						$(LOCAL_PATH)/../../../external/lua-5.1.4/src

LOCAL_C_INCLUDES := \
						$(LOCAL_PATH)/../../../external/lua-5.1.4/src

include $(BUILD_STATIC_LIBRARY)
